import { url } from "inspector";
import axios from "../../../../utils/axios";



export const getImg = () => {
    return axios({
        method: 'get',
        url: '/prod-api/api/metro/rotation/list'
    })
}


export const getList = () => {
    return axios({
        method: 'get',
        url: '/prod-api/api/metro/line/list'
    })
}

export const getAllMap = () => {
    return axios({
        method: 'get',
        url: '/prod-api/api/metro/city'
    })
}

export const searchRoad = (value: any) => {
    return axios({
        method: 'get',
        url: '/prod-api/api/metro/step/list?name=' + value
    })
}

export const getRoad = (id: any) => {
    return axios({
        method: 'get',
        url: '/prod-api/api/metro/line/' + id
    })
}